// eslint-disable-next-line no-unused-vars
import { znk } from '@/assets/util/public'
let rules = {
  /** ************* ************ 云平台管理************************************/
  /** ***************云平台管理/基础权限管理/标题校验 yxf****************** */
  title: [
    { required: true, message: '请输入标题', trigger: 'blur' }
  ],
  content: [
    { required: true, message: '请输入内容', trigger: 'blur' }
  ],
  name: [
    { required: true, message: '请输入名称', trigger: 'blur' }
  ],
  contactName: [
    { required: true, message: '请输入姓名', trigger: 'blur' }
  ],
  contactUsername: [
    { required: true, message: '请输入账号', trigger: 'blur' }
  ],
  contactMobile: [
    { required: true, message: '请输入手机', trigger: 'blur' }
  ],
  contactEmail: [
    { validator: znk.isEmail, trigger: 'blur' }
  ],
  address: [
    { required: true, message: '请输入地址', trigger: 'blur' }
  ],
  /** ***************云平台管理/基础权限管理/字典类型 yxf****************** */
  typeName: [
    { required: true, message: '请输入字典类型名称', trigger: 'change' }
  ],
  typeCode: [
    { required: true, message: '请输入字典编码', trigger: 'change' }
  ],
  /** ***************云平台管理/基础权限管理/字典值管理 yxf****************** */
  typeId: [
    { required: true, message: '请输入名称', trigger: 'change' }
  ],
  dicName: [
    { required: true, message: '请输入字典名称', trigger: 'change' }
  ],
  dicValue: [
    { required: true, message: '请输入字典值', trigger: 'change' }
  ],
  /** ***************系统设置/组织机构管理 wlf****************** */
  enabled: [
    { required: true, message: '请选择是否启用', trigger: 'blur' }
  ],
  type: [
    { required: true, message: '请选择类型', trigger: 'blur' }
  ],
  telephone: [
    { required: true, message: '请输入电话', trigger: 'blur' }
  ],
  /** ***************系统设置/用户管理 wlf****************** */
  password: [
    { validator: znk.password, trigger: 'blur' }
  ],
  checkpwd: [
    { validator: znk.checkpwd, trigger: 'blur' }
  ],
  username: [
    { required: true, message: '请输入用户名', trigger: 'blur' }
  ],
  sex: [
    { required: true, message: '请选择性别', trigger: 'blur' }
  ],
  mobile: [
    { required: true, message: '请输入手机号', trigger: 'blur' }
  ],
  orgId: [
    { required: true, message: '请选择部门', trigger: 'blur' }
  ],
  /** ***************系统设置/角色权限管理 wlf****************** */
  code: [
    { required: true, message: '请输入角色编码', trigger: 'blur' }
  ],
  sortNum: [
    { required: true, message: '请输入菜单排序', trigger: 'blur' }
  ],
  /** *************** 组件城市联动 ****************** */
  country: [
    { validator: znk.isCountry, trigger: 'blur', required: true }
  ],
  /** ***************资产管理/资产列表 yxf****************** */
  price: [
    { required: true, message: '请输入价格', trigger: 'blur' }
  ],
  pointId: [
    { required: true, message: '请选择网点', trigger: 'blur' }
  ],
  assetsTypeId: [
    { required: true, message: '请选择资产类型', trigger: 'blur' }
  ],
  customsId: [
    { required: true, message: '请输入资产编码', trigger: 'blur' }
  ]
  /** ***************服务管理/办证管理 yxf****************** */
}
export {
  rules
}
